package com.hspedu.outputstream;

import java.io.Serializable;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/25
 * @time 3:28
 */
public class Dog implements Serializable {
    private String name;
    private int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}